import http from '@/utils/fetch'

// 订单退款列表
export function orderRefundList(params) {
  return http.post('/Supplier/OrderRefund/orderRefundList', params)
}
// 订单退款详情
export function orderRefundInfo(id) {
  return http.get('/Supplier/OrderRefund/orderRefundInfo', { order_id: id })
}
// 退款订单补足金额明细
export function orderRefundTransData(id) {
  return http.get('/Supplier/OrderRefund/orderRefundTransData', { refund_id: id })
}
// 退款订单明细查看详情
export function orderRefundDetail(id) {
  return http.get('/Supplier/OrderRefund/orderRefundDetail', { refund_id: id })
}
// 商户审核通过
export function shopCheckPass(id, isAmountChange, refundAmount_now) {
  return http.post('/Supplier/OrderRefund/shopCheckPass', { refund_id: id, is_amount_change: isAmountChange, refund_amount_now: refundAmount_now }, true)
}
// 商户审核拒绝
export function shopCheckRefuse(params) {
  return http.post('/Supplier/OrderRefund/shopCheckRefuse', params, true)
}
// 平台审核通过
export function adminCheckPass(id) {
  return http.post('/Supplier/OrderRefund/adminCheckPass', { refund_id: id }, true)
}
// 平台审核拒绝
export function adminCheckRefuse(params) {
  return http.post('/Supplier/OrderRefund/adminCheckRefuse', params, true)
}

